﻿<%@ Control Language="C#" Inherits="Dimok.Web.UI.TableControlAjax" %>
<script runat="server">
	protected override void OnInit(EventArgs e) {
		WSEntityType = typeof(ts_PaymentWaterFall);
		ProfileID = "{A2A31082-ED9B-42ff-A3B0-AE535334899C}";
		ClientType = "motobankcorp.PaymentWaterFall";
		RowContextMenu = cmUploadWaterFall;
		base.OnInit(e);
	}
	protected override IEnumerable<ScriptDescriptor> GetScriptDescriptors() {
		var descriptors = base.GetScriptDescriptors().Cast<ScriptControlDescriptor>().ToDictionary(d => d.Type);
		var descriptor = descriptors[ClientType];
		descriptor.AddElementProperty("uploadButton", cmUploadWaterFall.Child("btnUploadFile").ClientID);
		descriptor.AddElementProperty("fileUpload", cmUploadWaterFall.Child("fileUpload").ClientID);
		return descriptors.Values.ToArray();
	}
	protected override IEnumerable<ScriptReference> GetScriptReferences() {
		var refs = base.GetScriptReferences().ToList();
		refs.Add(new ScriptReference("Dimok.Web.UI.JS.JQuery.ajaxfileupload.js", "Dimok.Web.UI"));
		return refs;
	}
</script>
<telerik:RadContextMenu ID="cmUploadWaterFall" Skin="Office2007" runat="server">
<Items>
	<telerik:RadMenuItem Text="Edit" Value="Edit"></telerik:RadMenuItem>
	<telerik:RadMenuItem IsSeparator="true"></telerik:RadMenuItem>
	<telerik:RadMenuItem Text="Upload" Value="UploadFile">
		<Items>
			<telerik:RadMenuItem>
				<ItemTemplate>
					<input type="file" id="fileUpload" RunAt="server" />
					<input type="button" value="Upload" id="btnUploadFile" RunAt="server" />
				</ItemTemplate>
			</telerik:RadMenuItem>
		</Items>
	</telerik:RadMenuItem>
</Items>
</telerik:RadContextMenu>
